package com.rtp.transformer.fin.client.model;

import java.io.Serializable;
import java.util.List;
/**
 * account category
 * @author xueming
 *
 */
public class AccountCategory implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer accountCategoryId;
	public Integer getAccountCategoryId() {
		return accountCategoryId;
	}
	public void setAccountCategoryId(Integer accountCategoryId) {
		this.accountCategoryId = accountCategoryId;
	}

	public AccountCategory() {
		super();
	}
	public AccountCategory(Integer accountCategoryId) {
		super();
		this.accountCategoryId = accountCategoryId;
	}

	private List<GLItem> items;
	private String accountNumber;
	private String name;
	private Double debitTotal;
	private Double creditTotal;
	private Double balance;
	public Double getBalance() {
		return balance;
	}
	public void setBalance(Double balance) {
		this.balance = balance;
	}
	public List<GLItem> getItems() {
		return items;
	}
	public void setItems(List<GLItem> items) {
		this.items = items;
	}
	public String getAccountNumber() {
		return accountNumber;
	}
	public void setAccountNumber(String accountNumber) {
		this.accountNumber = accountNumber;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Double getDebitTotal() {
		return debitTotal;
	}
	public void setDebitTotal(Double debitTotal) {
		this.debitTotal = debitTotal;
	}
	public Double getCreditTotal() {
		return creditTotal;
	}
	public void setCreditTotal(Double creditTotal) {
		this.creditTotal = creditTotal;
	}
	 
	public int hashCode() {
		return ((accountNumber == null) ? 0 : accountNumber.hashCode());		 
	}
	 
	public boolean equals(Object obj) {		
		AccountCategory ac = (AccountCategory)obj;		
		if(ac==null||ac.accountNumber==null)
			return false;
		return ac.accountNumber.equals(this.accountNumber);
	}
	 
	
}
